package service.v2;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;

import model.AddressVO;
import model.LogPackageVO;
import model.MemberVO;
import model.PackageVO;
import model.PageEarnVO;

public interface MemberService {

	MemberVO getMemberByTel(MemberVO memberVO);

	MemberVO login(MemberVO memberVO);

	void updateTokenAndLogin(Map<String, String> map);

	MemberVO smsLogin(MemberVO memberVO);

	int insert(MemberVO memberVO);

	void updatePwd(MemberVO memberVO);

	MemberVO getLevelByMemberId(String member_id);

	String getSpecificChildNum(String member_id, String master_id);

	String getChildrenNum(String id);

	MemberVO getMasterMemberInfo(String member_id);

	MemberVO getCurMemberInfo(String member_id);

	List<MemberVO> getLevlupInfo(String loadPropertie, String history_total_ticket);

	MemberVO getLoginMemberById(String id);

	void updateTel(MemberVO memberVO);

	int checkPwd(MemberVO memberVO);

	void updatePwdById(MemberVO memberVO);

	void updatePayPwdById(MemberVO memberVO);

	void updateIdCardInfo(MemberVO memberVO);

	MemberVO getMemberByTelNoInviteno(MemberVO memberVO);

	void updateMemberInfo(MemberVO memberVO);

	MemberVO getMemberInfoByTel(String invited_by);

	MemberVO getIdcardInfo(String member_id);

	int checkMemberInChildren(String id, String member_id);

	void updateInvitedBy(MemberVO memberVO);

	int checkTokenTime(String token, String member_id);

	MemberVO getDrawAccount(String member_id);

	void updateDrawAccountAlipay(String member_id,String type, String account, String name, String bank_id);

	int chekPayPwd(MemberVO memberVO);

	int checkFreeCash(MemberVO memberVO);

	String selectSpecialYn(String member_id);

	MemberVO checkLoginTime(String member_id, String day_num, String os);

	void updateLastLoginTime(String member_id, String os);

	MemberVO getInvitedMemberInfo(String member_id);

	List<MemberVO> getChildListByParent(MemberVO memberVO);

	MemberVO getInfoById(String parent_id);

	int getTotal(MemberVO memberVO);

	MemberVO getAllInfoById(String member_id);

	MemberVO getLoginMemberByOpenId(String open_id);

	int getPackage(String package_id);
	
	void insertLogPackage(LogPackageVO log);

	boolean checkRealName(String type, String member_id);
	
	void updMemberLevel(String member_id,String vip_level,String level, String primary_level);
	
	double getCurMonthProfit(String member_id);

	void regPushId(String member_id, String push_id);
	
	PackageVO  getGoodPackage(String pakcage_id,String standard_id);
	
	PackageVO  getGoodPackageNostandardId(String pakcage_id);

	int checkInviteNo(String invite_no);

	MemberVO getMemberInfoById(String invite_no);

	void updateOpenId(MemberVO vo);

	String getInvitenoByOpenid(String open_id);

	String getAlipayFee(String string);

	String selectMemberOpenid(String member_id);

	int getMemberNumByTel(MemberVO memberVO);

	void deleteMember(String id);

	double getfreeCash(String member_id);

	void updatePersonalSign(MemberVO memberVO);

	MemberVO getSimpleInfoById(String member_id);

	MemberVO getMemberByIdWechat(String member_id, String token);

	void updataMyWindowShareTimes(String member_id);

	JSONObject checkIdcardApprove(MemberVO memberVO);

	MemberVO getMemberByIdCheck(String member_id, String token, String os);

	String getInvitedByUpdate(String member_id) throws Exception;

	String getChildIds(String member_id);

	MemberVO getLoginMemberBySinaId(String sina_id);

	MemberVO getLoginMemberByQQId(String qq_id);

	String getCidById(String id);

	void updateSinaId(MemberVO memberVO);

	void updateQQId(MemberVO memberVO);

	String getUpExpertNum(String member_id, String expert_level);

	void insertConnTable(MemberVO memberVO);

	MemberVO selectmMemberTable(String member_id);

	String getInvitenoById(String header_member_id);

	MemberVO seleceMemerSomeInfo(String member_id);

	List<Map<String, Object>> getOpenIdAll();

	void updateOpendIdBatch(String openid, String uid);

	void updataPushOpenId(String member_id, String open_pushi_id);

	void insertOpenIdAndPushOpenId(String open_pushi_id, String union_id);

	MemberVO selectMemberInfoByUnionId(String union_id);

	List<String> getShangXianMemberId(String connNo);

	List<String> getShangXianMemberIdByOrderId(String order_id);

	void updatePushOpenId(String open_id, String push_open_id);

	void deleteMemberOpenByUnionId(String union_id);

	String getNickName(String create_by);

	String getNickNameByConnNO(String connNo);

	MemberVO getSimpleInfoByInviteNo(String invite_no);

	MemberVO packPaginationInfo(MemberVO memberVO);


	AddressVO getMemberAddress(String member_id, String address_id, String lang);

	int selectMemberCart(String address_id);

	int selectLibCity(String city_id);

	String getMemberLevelLogo(String level);

	Map getCommonPopUpInfo(MemberVO memberVO, String os,String type, String lang);

	List<PageEarnVO> getSuperBuyers(String lang);

	MemberVO popupPackage(Map map);

	List<MemberVO> selectChildList(MemberVO memberVO);
	
	MemberVO getMemberByTelAndCountry(MemberVO memberVO);

	int getMemberCountByTelAndCountry(MemberVO memberVO);

	int updateChildLevel(String child_member_id, String level);

	int getChildListTotal(MemberVO memberVO);

	int getChildListTotalByLevel(MemberVO memberVO);

	List<MemberVO> selectChildListByLevle(MemberVO memberVO);
	MemberVO getAllByInviteNo(String invite_no);

	void insertLogExp(String child_member_id, String level, String member_id);

	MemberVO getAllInfoByTelAndCountry_id(String tel, String country);

	void updateExpMsg(String id);

	List<PageEarnVO> packageBuversPrice(List<PageEarnVO> super_buvers_);

	MemberVO getLoginMemberByGoogleId(String google_id);

	void updateGoogleId(MemberVO memberVO);

	MemberVO getLoginMemberByFacebookId(String facebook_id);

	void updateFacebookId(MemberVO memberVO);

	MemberVO getLoginMemberByVkontakteId(String vkontakte_id);

	void updateVkontakteId(MemberVO memberVO);

	void updatePayPal(MemberVO memberVO);

	void updateInterAlipay(MemberVO memberVO);

	void updateInterBank(MemberVO memberVO);

	int checkFreeCashEn(MemberVO memberVO);

	void updateInterIdCardInfo(MemberVO memberVO);

	MemberVO getInterIdcardInfo(String member_id);

	int selectMemberCartEn(String address_id);

	MemberVO getDrawAccountInter(String member_id);

	
}
